﻿using Xtensive.Orm;

namespace EnumFields.Model
{
    [HierarchyRoot]
    public class Book : Entity
    {
        [Field, Key]
        public int Id { get; set; }

        [Field]
        public string Title { get; set; }

        [Field]
        public BookGenres Genres { get; set; }

        public Book(Session session) :
            base(session) {}
    }
}